package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tmeone.erpone.entity.TLaser;
import com.tmeone.erpone.entity.TOrder;
import com.tmeone.erpone.mapper.TLaserMapper;
import com.tmeone.erpone.service.ITLaserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yyg
 * @since 2021-04-20
 */
@Service
public class TLaserServiceImpl extends ServiceImpl<TLaserMapper, TLaser> implements ITLaserService {
    @Autowired
    private TLaserMapper laserMapper;


 /*   @Override
    public IPage<TLaser> pageTLasers(IPage<TLaser> page) {
        return laserMapper.pageTLasers(page);
    }*/

    @Override
    public IPage<TLaser> pageTLasersAndPrinter(IPage<TLaser> page, String search, String radio) {
        return laserMapper.pageTLasersAndPrinter(page,search,radio);
    }

    @Override
    public IPage<TOrder> findOrderByoid(Page tOrderPage, String search) {
        return laserMapper.findOrderByoid(tOrderPage,search);
    }
}
